<c:choose
  xmlns="http://www.w3.org/1999/xhtml"
  xmlns:ui="http://java.sun.com/jsf/facelets"
  xmlns:f="http://java.sun.com/jsf/core"
  xmlns:c="http://java.sun.com/jstl/core"
  xmlns:nxu="http://nuxeo.org/nxweb/util"
  xmlns:nxr="http://nuxeo.org/nxweb/resources">

  <c:when test="#{configurationService.isBooleanPropertyTrue('nuxeo.jsf.combinePageResources')}">
    <nxr:page name="#{pageName}"
      target="#{pageTarget}"
      target_js="#{pageJsTarget}"
      target_css="#{pageCssTarget}"
      target_html="#{pageHtmlTarget}"
      flavor="#{empty pageFlavor? 'default': pageFlavor}" />
  </c:when>
  <c:otherwise>
    <nxu:set var="page" value="#{themeStylingService.getPage(pageName)}" cache="true">
      <c:if test="#{page != null}">
        <nxr:bundle items="#{page.resourceBundles}"
          target="#{pageTarget}"
          target_js="#{pageJsTarget}"
          target_css="#{pageCssTarget}"
          target_html="#{pageHtmlTarget}"
          flavor="#{empty pageFlavor? 'default': pageFlavor}" />
      </c:if>
    </nxu:set>
  </c:otherwise>

</c:choose>